//
//  Person.m
//  yuanjiang
//
//  Created by YuanJiang on 2019/9/24.
//  Copyright © 2019 llbt. All rights reserved.
//

#import "Person.h"

@interface Person()

//私有变量
@property(nonatomic,strong) NSString *address;

@end

@implementation Person

-(instancetype)init
{
    if (self =[super init]) {
        _address = @"私有属性 宋二庄村";
        self.name = @"佳佳";
    }
    return self;
}

-(void)publicMethod
{
    NSLog(@"共有方法：%@",self.name);
}

-(void)privateMethod
{
    NSLog(@"私有方法：%@",self.address);
}

-(NSString *)description
{
    return [NSString stringWithFormat:@"名字%@-地址%@",self.name,self.address];
}

@end
